<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<body>
	<ui:composition template="/pages/protected/user/default.xhtml">
		<ui:define name="content">
			<h:form>
				<h3>${msgs.categoryCreateHeader}</h3>
				<h:panelGrid columns="2" styleClass="panelGrid"
					rowClasses="panelFirstLine,panelNextLine">
					<h:outputLabel for="categoryName" value="#{msgs.categoryname}" />
					<h:inputText id="categoryName" value="#{categoryMB.category.name}"
						required="true" requiredMessage="#{msgs.categoryNameRequired}" />
				</h:panelGrid>
				<h:panelGrid columns="2">
					<h:link outcome="listCategories" value="#{msgs.cancel}"
						immediate="true" />
					<h:commandButton action="#{categoryMB.createCategory()}"
						value="#{msgs.create}" />
				</h:panelGrid>
			</h:form>
		</ui:define>
	</ui:composition>
</body>
</html>